// 把antdesign的图标组件注册成全局组件
import {
  LockOutlined,
  UserOutlined,
  MailOutlined,
  SafetyOutlined,
  RightOutlined,
  CustomerServiceOutlined,
  CommentOutlined,
  SettingOutlined,
  CreditCardOutlined,
  DropboxOutlined,
  UnorderedListOutlined,
  ExclamationCircleOutlined,
  PhoneOutlined,
  PlusOutlined,
  HomeOutlined,
  UploadOutlined,
  ApartmentOutlined,
  FlagOutlined,
  ContactsOutlined,
  DribbbleOutlined,
  InfoCircleOutlined,
  SnippetsOutlined,
} from '@ant-design/icons-vue'
const icons = [
  LockOutlined,
  UserOutlined,
  MailOutlined,
  SafetyOutlined,
  RightOutlined,
  CustomerServiceOutlined,
  CommentOutlined,
  SettingOutlined,
  CreditCardOutlined,
  DropboxOutlined,
  UnorderedListOutlined,
  ExclamationCircleOutlined,
  PhoneOutlined,
  PlusOutlined,
  HomeOutlined,
  UploadOutlined,
  ApartmentOutlined,
  FlagOutlined,
  ContactsOutlined,
  DribbbleOutlined,
  InfoCircleOutlined,
  SnippetsOutlined,
]

export default {
  install(app: any) {
    icons.forEach((icon) => {
      app.component(icon.displayName, icon)
    })
  },
}
